package ctrl

import (
	"cyiris/app/demo/biz"
	"cyiris/core/http"
	log "cyiris/core/zaplog"
)

type GetUserCtrl struct {
	http.Ctrl
	biz *biz.GetUserBiz
}

func NewGetUserCtrl() *GetUserCtrl {
	c := &GetUserCtrl{
		Ctrl: http.NewBaseCtrl(),
		biz:  biz.NewGetUserBiz(),
	}

	return c
}

func (ctrl *GetUserCtrl) Action(ctx *http.Context) {
	log.Debugf("handle GetUserCtrl ctrl")

	ctx.Success(ctrl.biz.Handle())
}
